@import './common.less';

@color-sub: #da7fbc;
@font-size-base: 16px;

.blockTitle {
    margin: 10px auto;
    font-size: 20px;
}

// 头部
.headerContainer {
    height: 52px;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: auto;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    padding-right: 8px;

    .logo {
        overflow: hidden;
        text-align: center;
        height: 100%;
        background-color: #649bff;
        display: flex;
        align-items: center;
        padding: 0 8px;
        > img {
            height: 24px;
        }
    }

    .topMenu {
        flex: 1;
        display: flex;
        font-size: 12px;
        padding-left: 8px;
        > li {
            flex: 1;
            height: 52px;
            line-height: 52px;
            text-align: center;
            cursor: pointer;
            &.active {
                color: @color-sub;
                border-bottom: 2px solid @color-sub;
                a {
                    color: @color-sub;
                }
            }
        }
    }
}

// 横幅
.banner {
    height: 28%;
    margin-top: 0;
    background: url('../images/banner1.png') no-repeat center center;
    background-size: cover;
}

// 公司简介
.profileContainer {
    padding: 16px;
    background: #fff;
    font-size: @font-size-base;
    .profile {
        display: block;
        justify-content: center;
        align-items: start;
        margin: 0 auto;
        padding: 10px 0;
        text-align: justify;
        word-break: break-all;
        margin-bottom: 16px;

        > *:first-child {
            margin-right: 16px;
        }
        img {
            width: 90px;
            border-radius: 5px;
        }
        > img {
            float: left;
        }
        p {
            line-height: 1.5em;
            text-align: justify;
        }
    }
}

// 日语培训
.trainContainer {
    background: #6495ed;
    color: #fff;
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5em;

    .trainText {
        margin: 0 auto;
        padding: 10px 0;
    }
    .trainUl {
        display: block;
        justify-content: space-evenly;
        margin: 20px 0;
        margin-bottom: 16px;
        > li {
            width: 300px;
            margin: 0 auto;
            margin-top: 16px;
            padding: 10px;
            border: 1px solid #c5c5c5;
            border-radius: 6px;
            text-align: center;
        }
    }
    .trainImgs {
        display: flex;
        justify-content: space-evenly;
        margin: 16px 0;
        > img {
            height: 150px;
            border-radius: 6px;
            box-shadow: 0 0 10px 0 #666;
        }
    }
}

// 课程介绍
.sourseContainer {
    display: block;
    line-height: 1.5em;
    text-align: center;
    box-shadow: 0 0 10px 0 #666;
    z-index: 1;
    position: relative;
    font-size: 16px;
    .courseLeft,
    .courseRight {
        width: 100%;
        padding: 16px;
        font-size: @font-size-base;
        line-height: 1.5em;
    }
    .courseLeft {
        background-color: #fff;
        color: #da7fbc;
    }
    .contentDivContainer {
        display: flex;
    }
    .contentDiv {
        // display: inline-block;
        // width: 400px;
        margin: 0;
        vertical-align: top;
    }
    .courseRight {
        background-color: #da7fbc;
        color: #fff;
        .contentDiv {
            width: 50%;
            margin-top: 20px;
        }
        .sourseTitle {
            margin-top: 16px;
        }
    }
    .sourseTitle {
        font-weight: bold;
        font-size: 20px;
    }
    .sourseSubTitle {
        font-size: 16px;
        line-height: 1.2em;
    }
    .sourseContent {
        margin-top: 10px;
        overflow: hidden;
        > p {
            text-align: left;
        }
        > img {
            width: 50%;
            float: left;
            margin-top: 10px;
        }
    }
}

// 教师介绍
.teacherContainer {
    background: #6495ed;
    color: #fff;
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5em;

    .teacherBoxContainer {
        margin: 0 auto;
        margin-top: 16px;
        display: block;
        justify-content: center;
    }

    .teacherBox {
        margin-bottom: 40px;
        border-top: 1px dashed #ccc;
        padding-top: 40px;
        &:first-child {
            border-top: 0;
            padding-top: 0;
        }
        .teacherHeader {
            display: flex;
            align-items: center;
            .teacherImg {
                width: 150px;
                height: 150px;
                border-radius: 50%;
                background-position: center top;
                background-repeat: no-repeat;
                background-size: cover;
            }
            .teacherName {
                flex: 1;
                margin-left: 20px;
                font-size: 20px;
                font-weight: bold;
            }
        }
        .teacherIntroduceJp {
            margin: 16px 0;
        }
        .teacherIntroduceZh {
            background: #fff;
            color: #6495ed;
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 0 10px 0 #666;
        }
    }
}

// 开办日期
.startDateContainer {
    background: #fff;
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5em;

    .startDateBlock {
        margin: 0 auto;
        text-align: center;
    }

    .startDateTable {
        margin: 0 auto;
        border-bottom: 1px solid #999;
        border-right: 1px solid #999;
        td {
            padding: 8px 16px;
            border-left: 1px solid #999;
            border-top: 1px solid #999;
        }
    }
    .contactDesc {
        margin: 8px auto;
        text-align: left;
    }
}

// 办学流程
.studyAbroad {
    background: #fff;
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5em;
    .studyAbroadBox {
        margin: 0;
    }

    .studyAbroadInfoImg {
        text-align: center;
        > img {
            margin-right: 0;
            width: 100%;
        }
    }

    .studyAbroadTeacher {
        display: block;
        margin-top: 16px;
        text-align: justify;
        > img {
            width: 150px;
            overflow: hidden;
            border-radius: 5px;
            float: left;
            margin-right: 16px;
        }
        .studyAbroadTeacherImg {
            width: 180px;
            height: 180px;
            overflow: hidden;
            border-radius: 5px;
            > img {
                width: 100%;
            }
        }
        .studyAbroadTeacherText {
            flex: 1;
            margin-left: 16px;
        }
    }
}

// 学员风采
.studentComment {
    background: #6495ed;
    color: #fff;
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5em;
    .studentCommentList {
        margin: 16px 0;
        > li {
            display: flex;
            margin-top: 30px;
            .commentImg {
                width: 60px;
                height: 60px;
                border-radius: 3px;
                overflow: hidden;
                border: 1px solid #f5f5f5;
                > img {
                    width: 100%;
                }
            }
            .commentContent {
                flex: 1;
                margin: 0 20px;
                padding: 8px;
                position: relative;
                border-radius: 6px;
                background: rgba(255, 255, 255, 0.5);
                color: #333;
                box-shadow: 0 0 10px 0 #666;
                &::before {
                    position: absolute;
                    left: -19px;
                    top: 50px;
                    content: '';
                    width: 0;
                    height: 0;
                    border: 10px solid transparent;
                    border-right-color: rgba(255, 255, 255, 0.6);
                }
                .commentTitle {
                    font-size: 20px;
                    margin-bottom: 20px;
                }
                .commentText {
                    font-size: 16px;
                    text-indent: 2em;
                }
                &:last-child {
                    margin: 0 0 0 16px;
                }
                &:first-child {
                    margin: 0 16px 0 0;
                }
                &::before {
                    top: 20px;
                }
            }
            &.right {
                .commentContent {
                    &::before {
                        position: absolute;
                        left: auto;
                        right: -19px;
                        border-right-color: transparent;
                        border-left-color: rgba(255, 255, 255, 0.6);
                    }
                }
            }
        }
    }
}

// 页脚
.footer {
    padding: 40px 0 60px 0;
    background-color: #282e3f;
    font-size: 14px;
    line-height: 1.5em;
    color: #888;
    text-align: center;
    .footerBlock {
        width: 100%;
        margin: 0 auto;

        .footerLogo {
            img {
                height: 32px;
            }
            .wechat {
                margin-top: 20px;
                > img {
                    height: 150px;
                    border-radius: 6px;
                }
                text-align: center;
            }
        }

        .footerConcat {
            margin-top: 20px;
            border-top: 1px solid #535353;
            padding-top: 20px;
            img {
                width: 16px;
                vertical-align: middle;
            }
            > li {
                margin-bottom: 20px;
                > div {
                    height: 30px;
                    line-height: 30px;
                    vertical-align: middle;
                    &:first-child {
                        line-height: 22px;
                        height: 22px;
                    }
                }
            }
        }
    }

    .buttonText {
        color: #1269b9;
        &:hover {
            color: #fff;
        }
    }
}

// 日语培训列表
.trainBlock {
    > li {
        padding: 24px 16px;
        position: relative;

        > img {
            width: 100%;
            display: block;
            border-radius: 6px;
            margin-right: 16px;
        }
        h4 {
            line-height: 30px;
            > span {
                display: inline-block;
                height: 22px;
                line-height: 22px;
                padding: 0 8px;
                background-color: tint(@color-primary, 40%);
                color: #fff;
                margin-left: 8px;
                border-radius: 3px;
                font-size: 12px;
                font-weight: lighter;
                vertical-align: middle;
            }
        }
        h5 {
            line-height: 30px;
            > span {
                color: #999;
                font-weight: lighter;
            }
        }
        p {
            line-height: 24px;
            text-indent: 2em;
            color: #666;
        }

        &:nth-child(even) {
            border-color: rgba(215, 125, 185, 0.08);
            background-color: rgba(215, 125, 185, 0.08);
        }
    }
}

.footerMenu {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 40px;
    background: #fff;
    box-shadow: 0 0 10px 0 #5e667b;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    > li {
        flex: 1;
        text-align: center;
        border-left: 1px solid #dedede;
        &:first-child {
            border-left: 0;
        }
    }
}
